package com.yang.security.filter;


import org.assertj.core.util.Lists;
import java.util.Collection;


/**
 * Created by baipan
 * Date: 2019-12-18
 * 过滤规则接口
 */
public interface FilterInterface {


    /**
     * 白名单URL列表
     */
    default Collection<String> permits() {
        return Lists.newArrayList("/*.html",
                "/favicon.ico",
                "/css/**",
                "/js/**",
                "/fonts/**",
                "/layui/**",
                "/img/**",
                "/swagger-resources/**",
                "/statics/**",
                "/webjars/**"
        );
    }


    /**
     * 需要认证URL列表
     */
    Collection<String> authenticates();



}
